
import java.util.Scanner;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author info08
 */
public class Principal {
 
    public static void main(String[] args){
        double novoSalario1=0, novoSalario2=0;
        
        double salario1 = new Scanner(System.in).nextDouble();
        
        double porc1 = new Scanner(System.in).nextDouble();
        
        novoSalario1 += ((porc1/100)*salario1)+salario1;
        
        double salario2 = new Scanner(System.in).nextDouble();
        
        double porc2 = new Scanner(System.in).nextDouble();
        
        novoSalario2 += ((porc2/100)*salario2)+salario2;
        System.out.println("Salario 1: "+novoSalario1);
        System.out.println("Salario 2: "+novoSalario2);
        
    }
    
    public static double calcularSalario(
        double porcentagem, double salario){
        return ((porcentagem/100)*salario)+salario; 
        
    }
}
